<template>
  <div class="progress">
    <h1>Select a specific lesson</h1>
    <div id="main">
      <div id="tours">
        <div v-for="count in totalTour" key="count" style="display: inline-block">
          <el-button v-if="count > currentTour" disabled> Tour {{ count }}</el-button>
          <el-button v-else> Tour {{ count }}</el-button>
        </div>
      </div>
      <div id="units">
        <div v-for="count in unitPerTour" key="count" style="display: inline-block">
          <el-button v-if="count > currentUnit" disabled> Unit {{ count }}</el-button>
          <el-button v-else> Unit {{ count }}</el-button>
        </div>
      </div>
      <div id="info" style="position: absolute; right:150px; bottom: 50px;">
        <span>Tour {{ tourChoose }}, Unit {{ unitChoose }}</span>
        <el-button style="margin-left: 20px;">
          <router-link to="/">choose</router-link>
        </el-button>
        <el-button>
          <router-link to="/">cancel</router-link>
        </el-button>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'progress-map',
    components: {},
    data() {
      return {
        totalTour: 18,
        unitPerTour: 20,
        currentTour: 10,
        currentUnit: 10,
        unitChoose: 1,
        tourChoose: 1
      }
    },

    methods: {}
  }

</script>

<style scoped>
  .progress {
    min-height: 100%;
    background-color: black;
    color: white;
    border: black 1px solid;
    overflow: hidden;
    min-width: 1100px;
  }

  h1 {
    text-align: center;
  }

  #main {
    width: 1100px;
    margin: auto;
    position: relative;
    overflow: hidden;
  }

  #tours {
    width: 200px;
    padding-left: 50px;
    float: left;
  }

  #tours .el-button {
    margin: 5px;
    width: 80px;
    height: 30px;
  }

  #units {
    width: 900px;
    padding: 50px 100px;
    float: left;
  }

  #units .el-button {
    margin: 20px;
    width: 120px;
    height: 60px;
  }

  .el-button {
    color: white;
    margin: 5px;
    width: 80px;
    height: 30px;
    font-size: 13px;
    background-color: #323232;
  }

  .el-button:disabled{
    color: #4d4d4d;
    background-color: #323232;
  }


</style>
